package com.yjd.comm.spread.enums;

public enum SpreaderIdentity {
	default_level(0, "普通推广人"),
	level1(1, "原邀请人");
	private int level;
	private String description;

	private SpreaderIdentity(int status, String description) {
		this.level = status;
		this.description = description;
	}
	public int getLevel() {
		return level;
	}
	public String getDescription() {
		return description;
	}
	public static SpreaderIdentity getSmsStatus(int status) {
		for (SpreaderIdentity smsStatusEnum : SpreaderIdentity.values()) {
			if (smsStatusEnum.getLevel()==status) {
				return smsStatusEnum;
			}
		}
		return null;
	}
}	
